<?php

class GalleryImage extends AppModel {
	var $name = 'GalleryImage';
	
	var $belongsTo = array(
		'User' => array(
			'className' => 'Gallery',
			'foreignKey' => 'gallery_id')
	);
	
	 var $validate = array(
        'name'=> array(
            'rule' => 'notEmpty',
            'message' => 'Image name cannot be empty'
        )
     );
}
?>